#FROM registry.cn-hangzhou.aliyuncs.com/mt23/jre8-alpine-shanghai:1.0.0

#FROM  williamyeh/java8:latest
FROM  dquintela/openjdk-8-jdk-alpine
# UTF-8 并配置环境
ENV LANG C.UTF-8
ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#ADD /arthas-boot.jar /debug.jar

ADD /target/huahua-0.0.1-SNAPSHOT.jar /app.jar
# RUN apk add --update font-adobe-100dpi ttf-dejavu fontconfig

EXPOSE 8080
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar /app.jar --spring.profiles.active=prod
